<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <link href="css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="./fonts/font_tabbar/iconfont.css"/>
    <link rel="stylesheet" href="./css/public.css?v=20181211"/>
    <link rel="stylesheet" href="./css/take-water.css?v=20181211"/>
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
    <script src='./js/jquery-3.2.1.min.js'></script>
    <script src="./js/mui.min.js"></script>
    <script src="./js/art-template.js"></script>
    <script src="./js/config.js?v=20181211"></script>
</head>

<body>
<div class='mui-content'>
    <div class='img-container'>
        <a href="javascript:redirect('index.html')"><img class='image' src="image/take1.png" alt=""/></a>
    </div>
    <div class='img-container'>
        <a href="javascript:redirect('member-ticket.html')"> <img class='image' src="image/take.png" alt=""/></a>
    </div>
    <!--tabbar-->
    <nav class='mui-bar mui-bar-tab'>
        <a href="javascript:redirect('take-water.html')" class="mui-tab-item  mui-active">
            <span class='mui-icon'><i class=" iconfont icon-shuidi"></i></span>
            <span class='mui-tab-label'>订水</span>
        </a>
        <a href="javascript:redirect('index.html')" class="mui-tab-item">
            <span class='mui-icon'><i class=" iconfont icon-shangcheng"></i></span>
            <span class='mui-tab-label'>商城</span>
        </a>
        <a href="javascript:redirect('water-ticket.html')" class="mui-tab-item">
            <span class='mui-icon'><i class=" iconfont icon-piaofang"></i></span>
            <span class='mui-tab-label'>水票</span>
        </a>
        <a href="javascript:redirect('member.html')" class="mui-tab-item">
            <span class='mui-icon'><i class=" iconfont icon-wo"></i></span>
            <span class='mui-tab-label'>我的</span>
        </a>
    </nav>
</div>

<script src='./js/commen.js?v=20181211'></script>
<script>

    var xcx_openid = GetQueryString('xcx_openid') || '';
    var wx_openid = GetQueryString('wx_openid') || '';
    var sid = GetQueryString('sid') || '';
    if (xcx_openid || wx_openid) {
        var success = function (res) {
            var info = res.data.info;
            if (info != '' && info != undefined) {
                var title = '订水';
                if (info.shop_name != '订水') {
                    title = info.shop_name;
                }
                document.title = title;
                setCache(login_key, info);
                //小程序强制退出授权
                if (window.__wxjs_environment == 'miniprogram') {
                    var unionid = info.unionid || '';
                    if (window.location.host == 'www.qudingshui.com' && unionid == '') {
                        if ($.inArray(sid, [3, 4, 8, 11, 24]) >= 0) {
                            setTimeout(function(){ wx.miniProgram.redirectTo({url: '/pages/index/index?type=clear'});},2000)
                        }
                    }
                }
            }
        }
        getData(member_info, {xcx_openid: xcx_openid, wx_openid: wx_openid, sid: sid}, success);
    }

    checkShopStatus();
</script>
</body>
</html>
